From 876d6b825e8b879d7480d5250a47c6164ba81619 Mon Sep 17 00:00:00 2001 From: Jeroen van der Heijden Date: Wed, 16 May 2018 13:07:32 +0200 Subject: [PATCH] Added comment --- src/siri/net/protocol.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/siri/net/protocol.c b/src/siri/net/protocol.c index ba41e9a6..e71bccb3 100644 --- a/src/siri/net/protocol.c +++ b/src/siri/net/protocol.c @@ -23,13 +23,18 @@ const char * sirinet_cproto_client_str(cproto_client_t n) case CPROTO_REQ_AUTH: return "CPROTO_REQ_AUTH"; case CPROTO_REQ_PING: return "CPROTO_REQ_PING"; case CPROTO_REQ_INFO: return "CPROTO_REQ_INFO"; + + /* deprecated, used by the old SiriDB manage tool */ case CPROTO_REQ_LOADDB: return "CPROTO_REQ_LOADDB"; case CPROTO_REQ_REGISTER_SERVER: return "CPROTO_REQ_REGISTER_SERVER"; case CPROTO_REQ_FILE_SERVERS: return "CPROTO_REQ_FILE_SERVERS"; case CPROTO_REQ_FILE_USERS: return "CPROTO_REQ_FILE_USERS"; case CPROTO_REQ_FILE_GROUPS: return "CPROTO_REQ_FILE_GROUPS"; case CPROTO_REQ_FILE_DATABASE: return "CPROTO_REQ_FILE_DATABASE"; + /* end deprecated */ + case CPROTO_REQ_ADMIN: return "CPROTO_REQ_ADMIN"; + default: sprintf(protocol_str, "CPROTO_CLIENT_TYPE_UNKNOWN (%d)", n); return protocol_str; @@ -44,8 +49,12 @@ const char * sirinet_cproto_server_str(cproto_server_t n) case CPROTO_RES_INSERT: return "CPROTO_RES_INSERT"; case CPROTO_RES_AUTH_SUCCESS: return "CPROTO_RES_AUTH_SUCCESS"; case CPROTO_RES_ACK: return "CPROTO_RES_ACK"; + + /* deprecated, used by the old SiriDB manage tool */ case CPROTO_RES_INFO: return "CPROTO_RES_INFO"; case CPROTO_RES_FILE: return "CPROTO_RES_FILE"; + /* end deprecated */ + case CPROTO_ACK_ADMIN: return "CPROTO_ACK_ADMIN"; case CPROTO_ACK_ADMIN_DATA: return "CPROTO_ACK_ADMIN_DATA"; case CPROTO_ERR_MSG: return "CPROTO_ERR_MSG"; @@ -58,8 +67,12 @@ const char * sirinet_cproto_server_str(cproto_server_t n) case CPROTO_ERR_NOT_AUTHENTICATED: return "CPROTO_ERR_NOT_AUTHENTICATED"; case CPROTO_ERR_AUTH_CREDENTIALS: return "CPROTO_ERR_AUTH_CREDENTIALS"; case CPROTO_ERR_AUTH_UNKNOWN_DB: return "CPROTO_ERR_AUTH_UNKNOWN_DB"; + + /* deprecated, used by the old SiriDB manage tool */ case CPROTO_ERR_LOADING_DB: return "CPROTO_ERR_LOADING_DB"; case CPROTO_ERR_FILE: return "CPROTO_ERR_FILE"; + /* end deprecated */ + case CPROTO_ERR_ADMIN: return "CPROTO_ERR_ADMIN"; case CPROTO_ERR_ADMIN_INVALID_REQUEST: return "CPROTO_ERR_ADMIN_INVALID_REQUEST"; default: -- 2.30.2